<template>
  <el-dialog
    title="请选择客户"
    :visible.sync="isDictionaryDialogShow"
    width="80%"
    @close="closeAll"
  >
    <div style="height: 80vh; overflow-y: auto">
      <Dic @gitId="getId" />
    </div>

    <span slot="footer" class="dialog-footer">
      <el-button @click="closeAll">取 消</el-button>
      <el-button type="primary" @click="sureData">确 定</el-button>
    </span>
  </el-dialog>
</template>
<script>
import Dic from "../../../customerManage/custom";
export default {
  props: {
    isDictionaryDialogShow: {
      type: Boolean,
      default: false,
    },
  },
  components: { Dic },
  data() {
    return {
      dicId: null,
    };
  },
  methods: {
    getId(val) {
      console.log("ozz", { val });

      this.dicId = val;
    },
    sureData() {
      this.$emit("addCustomFn", this.dicId);
      this.$emit("closeFn", false);
    },
    closeAll() {
      this.$emit("closeFn", false);
    },
  },
  created() {
    // console.log(this.closeFn);
  },
};
</script>
<style lang="scss" scoped></style>
